package com.lcredu.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @author 18442
 * @author 18442
 * @author 黎长容
 * @date 2025-08-09 22:25
 */
//@Component
//等价于生成了 @Getter @Setter @RequiredArgsConstructor @ToString @EqualsAndHashCode.

/**
 * Furn配置类，用于映射配置文件中以"furn01"为前缀的属性
 * 该类通过@ConfigurationProperties注解自动绑定配置属性
 */
@ConfigurationProperties(prefix = "furn01")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Furn {
    private Integer id;
    private String name;
    private BigDecimal price;
}

